package com.wicket.okrframework.web.contorller;
import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrframework.biz.service.dto.req.*;
import com.wicket.okrframework.biz.service.dto.res.*;
import com.github.pagehelper.Page;
import com.github.pagehelper.page.PageMethod;
import com.wicket.okrframework.biz.service.InterfaceModeService;
import com.wicket.okrframework.common.util.CommonFunctionHelper;
import com.wicket.okrframework.common.ro.OkrResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@RestController
@RequestMapping("/base/interfaceMode/")
public class InterfaceModeController {
    @Autowired
    InterfaceModeService  interfaceModeService;
/**
   * D1-1执行清除底层框架服务公共字段内存(公共)
   */
    @PostMapping("implementBottomPublicFieldClearMemoryCom")
    public OkrResult<ImplementBottomPublicFieldClearMemoryComRespDto> implementBottomPublicFieldClearMemoryCom(@RequestBody @Validated ImplementBottomPublicFieldClearMemoryComReqDto reqDTO){
    return OkrResult.success(interfaceModeService.implementBottomPublicFieldClearMemoryCom(reqDTO));
    }
/**
   * D1新增框架内存业务数据(公共)
   */
    @PostMapping("addFrameWorkMemoryBusinessDataCom")
    public OkrResult<AddFrameWorkMemoryBusinessDataComRespDto> addFrameWorkMemoryBusinessDataCom(@RequestBody @Validated AddFrameWorkMemoryBusinessDataComReqDto reqDTO){
    return OkrResult.success(interfaceModeService.addFrameWorkMemoryBusinessDataCom(reqDTO));
    }
/**
   * D1查询框架内存业务数据列表(公共)
   */
    @PostMapping("queryFrameWorkMemoryBusinessDataListCom")
    public OkrResult<QueryFrameWorkMemoryBusinessDataListComRespDto> queryFrameWorkMemoryBusinessDataListCom(@RequestBody @Validated QueryFrameWorkMemoryBusinessDataListComReqDto reqDTO){
    return OkrResult.success(interfaceModeService.queryFrameWorkMemoryBusinessDataListCom(reqDTO));
    }
/**
   * D1分段查询框架服务数据对象(公共)
   */
    @PostMapping("implementGeneralSegBaseDataCom")
    public OkrResult<ImplementGeneralSegBaseDataComRespDto> implementGeneralSegBaseDataCom(@RequestBody @Validated ImplementGeneralSegBaseDataComReqDto reqDTO){
    return OkrResult.success(interfaceModeService.implementGeneralSegBaseDataCom(reqDTO));
    }
}
  